package com.it.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Comment {

    private Integer id;

    private Integer parentId;

    private Integer rootId;

    private String content;

    private Integer userId;

    private Byte isDelete;

    private Integer commType;

    private Integer commTargetId;


    private Integer toCommUserId;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date commTime;

    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getCommTime() {
        return commTime;
    }

    public Integer getToCommUserId() {
        return toCommUserId;
    }

    public void setToCommUserId(Integer toCommUserId) {
        this.toCommUserId = toCommUserId;
    }

    public void setCommTime(Date commTime) {
        this.commTime = commTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getCommType() {
        return commType;
    }

    public void setCommType(Integer commType) {
        this.commType = commType;
    }

    public Integer getCommTargetId() {
        return commTargetId;
    }

    public void setCommTargetId(Integer commTargetId) {
        this.commTargetId = commTargetId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", rootId=" + rootId +
                ", content='" + content + '\'' +
                ", userId=" + userId +
                ", isDelete=" + isDelete +
                ", commType=" + commType +
                ", commTargetId=" + commTargetId +
                ", toCommUserId=" + toCommUserId +
                ", commTime=" + commTime +
                ", user=" + user +
                '}';
    }
}
